import Layout from "@/layout";

const productRouter = {
  path: "/product/list",
  component: Layout,
  redirect: "noRedirect",
  name: "product",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "产品管理",
    abbre: "产品",
    icon: "left_menu_order",
    navigation: "/product",
    id: "407"
  },
  children: [
    {
      path: "/product/list",
      component: () => import("@/views/product/productList"),
      name: "product_list",
      hidden: false,
      meta: {
        title: "产品列表",
        noCache: true,
        navigation: "/product/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/product/userType",
      component: () => import("@/views/product/userType"),
      name: "product_type",
      hidden: false,
      meta: {
        title: "客户类型",
        noCache: true,
        navigation: "/product/userType",
        icon: "menu_big_data"
      }
    },
    {
      path: "/product/maintenanceMenu/:type",
      component: () => import("@/views/product/maintenanceMenu"),
      name: "product_mainmenu",
      hidden: true,
      meta: {
        title: "维护菜单",
        bread: "产品列表,维护菜单",
        noCache: true,
        navigation: "/product/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/product/mainMenuDetail",
      component: () => import("@/views/product/mainMenuDetail"),
      name: "product_mainmenu_detail",
      hidden: true,
      meta: {
        title: "菜单设置",
        bread: "产品列表,菜单设置",
        noCache: true,
        navigation: "/product/list",
        icon: "menu_big_data"
      }
    },
    {
      path: "/product/customerList",
      component: () => import("@/views/product/customerList"),
      name: "product_customer_list",
      hidden: false,
      meta: {
        title: "客服角色",
        noCache: true,
        navigation: "/product/customerList",
        icon: "menu_big_data"
      }
    }
  ]
};

export default productRouter;
